import Vue from 'vue'

export default () => {
  Vue.filter('ORDER_STATUS', v => {
    switch (v) {
      case 'PAYING':
        return '待付款'
      case 'EXPRESSING':
        return '待发货'
      case 'CONFIRMING':
        return '待收货'
      case 'COMMENTING':
        return '待评价'
      case 'DONE':
        return '订单完成'
      case 'CANCEL':
        return '订单取消'
      default:
    }
    return '无效类型'
  })
}